package test.reporters;

import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.visualizers.gui.AbstractListenerGui;

import kg.apc.jmeter.JMeterPluginsUtils;

public class MySampleResultReporter extends AbstractListenerGui{

	@Override
	public String getLabelResource() {
		return this.getClass().getSimpleName();
	}
	
	
	@Override
	public String getStaticLabel() {
		
		return JMeterPluginsUtils.prefixLabel("myfirstlistener");
	}
	@Override
	public TestElement createTestElement() {
		MySampleResultCollector collector = new MySampleResultCollector();
		modifyTestElement(collector);
		return collector;
	}

	@Override
	public void modifyTestElement(TestElement element) {
		element.clear();
		configureTestElement(element);
		
	}
	@Override
	public void configure(TestElement element) {
		// TODO Auto-generated method stub
		super.configure(element);
	}

}
